import request from '@/utils/request';
// 科室详情
export const officeDetail = params => request({
    url: '/office/get',
    method: 'GET',
    params
});
// 科室列表
export const officePageList = params => request({
    url: '/office/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 科室列表下拉
export const officeList = params => request({
    url: '/office/pull/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 科室新增
export const officeAdd = params => request({
    url: '/office/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 科室修改
export const officeUpdate = params => request({
    url: '/office/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 科室删除
export const officeDel = params => request({
    url: '/office/del',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 科室删除
export const officeStatus = params => request({
    url: '/office/status/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 院区科室树
export const yardDeptTree = params => request({
    url: '/office/yardDeptTree',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
